package com.ruoyi.teaching.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import java.util.Set;

import com.ruoyi.teaching.bo.HighInterviewMasteryListBo;
import com.ruoyi.teaching.bo.QueryInterviewMasterBo;
import com.ruoyi.teaching.domain.YaHighInterview;
import org.apache.ibatis.annotations.Param;

/**
 * 高频面试题Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-14
 */
public interface YaHighInterviewMapper  extends BaseMapper<YaHighInterview>
{
    /**
     * 根据ids查询相关面试题
     * @param interviewIds
     * @return
     */
    List<YaHighInterview> queryRelatedInterviewByIds(@Param("interviewIds")List<Long> interviewIds);

    /**
     * 根据关键字查询相关面试题
     * @param  keywords
     * @return
     */
    List<YaHighInterview> queryRelatedInterview(@Param("keywords") Set<String> keywords);


    /**
     * 查询高频面试题
     *
     * @param id 高频面试题主键
     * @return 高频面试题
     */
    public YaHighInterview selectYaHighInterviewById(Long id);

    /**
     * 查询高频面试题列表
     *
     * @param yaHighInterview 高频面试题
     * @return 高频面试题集合
     */
    public List<YaHighInterview> selectYaHighInterviewList(YaHighInterview yaHighInterview);

    /**
     * 新增高频面试题
     *
     * @param yaHighInterview 高频面试题
     * @return 结果
     */
    public int insertYaHighInterview(YaHighInterview yaHighInterview);

    /**
     * 修改高频面试题
     *
     * @param yaHighInterview 高频面试题
     * @return 结果
     */
    public int updateYaHighInterview(YaHighInterview yaHighInterview);

    /**
     * 删除高频面试题
     *
     * @param id 高频面试题主键
     * @return 结果
     */
    public int deleteYaHighInterviewById(Long id);

    /**
     * 批量删除高频面试题
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYaHighInterviewByIds(Long[] ids);

    /**
     * 根据课程id查询高频面试题
     * @param courseDesignId
     * @return
     */
    List<Long> selectHighInterviewByCourseDesignId(@Param("courseDesignId")Long courseDesignId);

    List<HighInterviewMasteryListBo> selectYaInterviewMasteryList(QueryInterviewMasterBo queryInterviewMasterBo);
}
